package com.edooteach.api.servcice;

import java.util.List;
import com.edoomath.entity.course.CourseUnitHomework;
import com.edoomath.entity.course.UserCourse;
import com.edooteach.api.entity.SigninRequest;

public interface UserCourseService extends DataService<UserCourse> {
    
    /**
     * 
     * @param unionid
     * @return
     */
    public List<UserCourse> listAll(String unionid);
    
    /**
     * 
     * @param bookid
     * @param unionid
     * @return
     */
    public UserCourse load(Long bookid, String unionid);
    
    /**
     * 
     * @param unitId
     * @param unionid
     * @return
     */
    public List<CourseUnitHomework> listHomework(Long unitId, String unionid);
    
    /**
     * 
     * @param unitId
     * @param unionid
     * @param id
     * @return
     */
    public CourseUnitHomework load(Long id);
    
    /**
     * 
     * @param unitId
     * @param unionid
     * @param signinRequest
     */
    public void uploadHomework(Long unitId, String unionid, SigninRequest signinRequest);

}
